project(aoi)

if(CMAKE_SYSTEM_NAME MATCHES "Windows")
    add_definitions(-DLUA_BUILD_AS_DLL)
endif()

add_definitions(-DLUA_LIB)

include_directories(../../hive/3rd/lua)

aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR} AOI_SOURCES)

add_library(aoi SHARED ${AOI_SOURCES})
target_link_libraries(aoi liblua mimalloc)